{% extends "delivered/base_site.html" %}

{% block title %}{{ block.super}} | {{ release }}{% endblock %}

{% block cssincludes %}
    {{ block.super }}
    <link rel="stylesheet" href="/static/css/release.css" />
{% endblock %}

{% block content %}
    <h1>{{ release.name }}</h1>
    <table id="TOC">
        <tr>
	        <td>
		        <h4>Feature Areas</h4>
		        <ul>
		        {% for fgroup in release.featuregroup_set.all %}
		            <li><a href="#feature_{{ fgroup.id }}" >{{ fgroup.name }}</a></li>
		        {% endfor %}
		        </ul>
		        <a class="addLink" href="/admin/projects/featuregroup/add/">Add a feature group</a>
	        </td>
        </tr>
    </table>
	{% for fgroup in release.featuregroup_set.all %}
        <a name="feature_{{ fgroup.id}}" />
	    <h2>{{ fgroup.name }}</h2>
	    <ul>
	        {% for feature in fgroup.feature_set.all %}
	            <li><a href="/d/feature/{{ feature.id }}" >{{ feature }}</a><img src="/static/images/priority_{{ feature.priority }}.gif" /></li>
	        {% endfor %}
	    </ul>
	    <a class="addLink" href="/admin/projects/feature/add/">Add a feature</a>
	{% endfor %}
{% endblock %}